package com.example.day_0813_103;

import com.example.day_0813_103.slice.Three_AbilitySlice;
import com.example.day_0813_103.slice.Three_AbilitySlice2;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;
import ohos.hiviewdfx.HiLog;
import ohos.hiviewdfx.HiLogLabel;

public class Three_Ability extends Ability {
    private static final HiLogLabel LABEL = new HiLogLabel(HiLog.LOG_APP,0x00201,"MY_TAG");

    @Override
    public void onStart(Intent intent) {
        HiLog.info(LABEL,"这里是 Three_Ability 的 onStart");
        super.onStart(intent);
        super.setMainRoute(Three_AbilitySlice.class.getName());
        addActionRoute("Two_three", Three_AbilitySlice2.class.getName());

    }
    @Override
    protected void onAbilityResult(int requestCode, int resultCode, Intent resultData) {
        super.onAbilityResult(requestCode, resultCode, resultData);
        HiLog.info(LABEL,"这里是 Three_Ability 的 onAbilityResult");
        HiLog.info(LABEL,String.valueOf(requestCode));
        HiLog.info(LABEL,String.valueOf(resultCode));
        HiLog.info(LABEL,resultData.getStringParam("value"));
    }

    @Override
    protected void onActive() {
        HiLog.info(LABEL,"这里是 Three_Ability 的 onActive");
        super.onActive();
    }

    @Override
    protected void onInactive() {
        HiLog.info(LABEL,"这里是 Three_Ability 的 onInactive");
        super.onInactive();
    }

    @Override
    protected void onBackground() {
        HiLog.info(LABEL,"这里是 Three_Ability 的 onBackground");
        super.onBackground();
    }
}
